public class Solution492 {
    public int[] constructRectangle(int area) {
        for (int i=(int)Math.sqrt(area);i>=1;i--){
            if (area % i==0){
                int[] ans=new int[2];
                ans[0]=area/i;
                ans[1]=i;
                return ans;
            }
        }
        return null;
    }

    public static void main(String[] args) {
        System.out.println(new Solution492().constructRectangle(4)[1]);
    }
}
